#! /bin/bash

arr=(11 22 33 44 55 [10]=66)
for val in ${arr[@]}
do
    echo $val
done


echo "========="

for val in $*
do
    echo "$val文件已经创建"
done


echo "========="
count=0
while [ $count -lt 5 ];do
    echo "$count hello world"
    count=`expr $count + 1`
done

echo "========="
count=1
sum=0
while [ $count -le 100 ];do
    # echo "$count"
    sum=`expr $count + $sum`
    count=`expr $count + 1`
done
echo "while 1到100的和为$sum"


echo "========="
count=1
sum=0
until [ $count -gt 100 ];do
    # echo "$count"
    sum=`expr $count + $sum`
    count=`expr $count + 1`
done
echo "until 1到100的和为$sum"